Skip to content

Add CI job for lightspeed operator deployment - #65

Open
malingatembo wants to merge 7 commits into
openstack-k8s-operators:mainfrom
malingatembo:add-deployment-job-osprh-33343
Open

Add CI job for lightspeed operator deployment#65
malingatembo wants to merge 7 commits into
openstack-k8s-operators:mainfrom
malingatembo:add-deployment-job-osprh-33343

Conversation

@malingatembo

@malingatembo malingatembo commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Creates lightspeed-operator-deployment-crc job that:

  • Deploys operator using ci-framework playbook
  • Uses example LLM endpoint (no real credentials)
  • Expected to fail on auth verification

JIRA: OSPRH-33344

@openshift-ci
openshift-ci Bot requested review from lpiwowar and umago August 24, 2026 16:59
@openshift-ci

openshift-ci Bot commented Aug 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: malingatembo
Once this PR has been reviewed and has the lgtm label, please assign lpiwowar for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 57863831-9a47-42f5-b104-be730ead94ca


Comment @coderabbitai help to get the list of available commands.

@malingatembo

Copy link
Copy Markdown
Contributor Author

/recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/a74e122b0c4444bbb791d46b748561d4

Warning:
Dependency cycle detected and project openstack-k8s-operators/ci-framework doesn't allow circular dependencies

@malingatembo

Copy link
Copy Markdown
Contributor Author

/recheck

@malingatembo

Copy link
Copy Markdown
Contributor Author

recheck

1 similar comment
@malingatembo

Copy link
Copy Markdown
Contributor Author

recheck

Comment thread .zuul.yaml Outdated
Creates lightspeed-operator-deployment-crc job that:
- Deploys operator using ci-framework playbook
- Uses example LLM endpoint (no real credentials)
- Expected to fail on auth verification
- Inherits from cifmw-base-crc for CRC cluster provisioning

JIRA: OSPRH-33344
@malingatembo
malingatembo force-pushed the add-deployment-job-osprh-33343 branch from 0c3b371 to cecc1eb Compare August 25, 2026 14:41
@openstack-k8s-operators openstack-k8s-operators deleted a comment from umago Aug 25, 2026
creates lightspeed-operator-deployment-crc job that:
- deploys operator using ci-framework playbook
- expected to fail on auth verification ( uses
  fake creds for LLM endpoints )
- matches file pattern in openstack-operator (in zuul.d/)

Jira: OSPRH-33344
@centosinfra-prod-github-app

Copy link
Copy Markdown

Unable to freeze job graph: Job lightspeed-operator-deployment-crc does not specify a run playbook

Created ci/playbooks/lightspeed/run.yml to execute deployment hook
Added run: directive to lightspeed-operator-deployment-crc job
Fixes Zuul CONFIG_ERROR: "job does not specify a run playbook"

Related: OSPRH-33344
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/b4235ec9de5a483a9faf996ac6962f87

lightspeed-operator-deployment-crc FAILURE in 29m 14s

Comment thread zuul.d/jobs.yaml Outdated
# CI job for deploying OpenStack Lightspeed operator
- job:
name: lightspeed-operator-deployment-crc
parent: cifmw-base-crc

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question (non-blocking): Does this job deploy OpenStack as well? I think it does not but I am not 100 % certain about it. In a long term it would be good if the job deployed OpenStack as well because then we can do some basic checks that involve MCP.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No no, this one only deploys OpenStack Lightspeed operator using the CRC ( so no full deployment of OpenStack control plane). for full OpenStack deployment + MCP integration testing, i think we'd need to add that to a seperate job or enhance this one - maybe we can keep track and have a seperate ticket for it

Comment thread zuul.d/jobs.yaml
- job:
name: lightspeed-operator-deployment-crc
parent: cifmw-base-crc
attempts: 1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (blocking): I think you want to add openstack-k8s-operators-content-provider job as a dependency [1]. This job builds the operator and then provides it to the "child" jobs that depend on it. This allows you to test the operator from a content in a PR.

[1] https://github.com/openstack-k8s-operators/openstack-operator/blob/aeda4eda1c71ae34dabc5b458e1340ab755f41a4/zuul.d/jobs.yaml#L35

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pointer to this feature.. Yeah, I agree we should require a build from pr. I have make the change in ebf2560

Comment thread zuul.d/jobs.yaml
---
# CI job for deploying OpenStack Lightspeed operator
- job:
name: lightspeed-operator-deployment-crc

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (non-blocking): If I were working on this I would be using autohold to investigate the job from the inside.

The previous implementation had incorrect hook variable format and
directly included tasks instead of using ci-framework's run_hook role.

Changes:
- Fixed hook format: Changed from string to proper list structure
  with name, type, and source fields as expected by run_hook role
- Updated run playbook to use run_hook role instead of include_tasks
- Added roles directive to make ci-framework roles available
- Hook source points to install-openstack-lightspeed.yml in
  ci-framework/hooks/playbooks/ directory

The run_hook role automatically resolves hook sources from
ci-framework/hooks/playbooks/ and handles execution, logging,
and artifact collection.

Fixes: Job failure after 29m execution
Related: OSPRH-33344
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/0e7a9ed2f30341758ef0de3a8d1ed76c

lightspeed-operator-deployment-crc FAILURE in 20m 52s

Added openstack-k8s-operators-content-provide
as a job dependency to make sure that operator
is built from pr changes before deployment.

Without this the job wouold use the upstream catalogue
image instead of testing the actual pr content.

follows the pattern by openstack-operator
https://github.com/openstack-k8s-operators/openstack-operator/blob/aeda4eda1c71ae34dabc5b458e1340ab755f41a4/zuul.d/jobs.yaml#L35

Related: OSPRH-33344
@centosinfra-prod-github-app

Copy link
Copy Markdown

Unable to freeze job graph: Job lightspeed-operator-deployment-crc depends on openstack-k8s-operators-content-provider which was not run.

The deployment job depends on OpenStack-k8s-operators-content-provider
but it was not configured to run in the pipeline. this cased the error:
'Job depends on openstack-k8s-operators-content-provider which was not run'

Added content-provider to the jobs list so it runs before deployment,
building the operator from PR code and making it available for testing.

Fixes: CONFIG_ERROR - dependency not satisfied
Related: OSPRH-33344
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/35994b384a7147acb95d077b0d74de58

openstack-k8s-operators-content-provider FAILURE in 7m 04s
⚠️ lightspeed-operator-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants